load("//tools:defaults.bzl", "ts_library")

package(default_visibility = ["//visibility:public"])

ts_library(
    name = "testing",
    testonly = True,
    srcs = glob(["**/*.ts"]),
    # Schematics can not yet run in ESM module. For now we continue to use CommonJS.
    # TODO(ESM): remove this once the Angular CLI supports ESM schematics.
    devmode_module = "commonjs",
    prodmode_module = "commonjs",
    tsconfig = "tsconfig.json",
    deps = [
        "@npm//@angular-devkit/core",
        "@npm//@angular-devkit/schematics",
        "@npm//@bazel/runfiles",
        "@npm//@schematics/angular",
        "@npm//@types/fs-extra",
        "@npm//@types/glob",
        "@npm//@types/jasmine",
        "@npm//@types/node",
        "@npm//fs-extra",
        "@npm//jsonc-parser",
        "@npm//rxjs",
    ],
)
